import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import zhCN from 'antd/lib/locale/zh_CN';
import {ConfigProvider} from 'antd';
import moment from 'moment';
import 'moment/locale/zh-cn';
import 'antd/dist/antd.css';
// import App from './App'
// import Index from "./upLoad";   //上传图片功能
// import Tars from "./tags";  //标签功能
// import Component1 from "./render-props/component1";
// import Context from "./context/context";
// import UseState from './hooks/useState';
// import RefUse from './useRef/useRef'
// import UseMemoUseCallback from './useMemo-useCallback'
// import Parent from './useRef/forwardRef'
// import UseTestState from "./useSetState/useTestState";
// import TestUseLayoutEffect from "./useLayoutEffect/testUseLayoutEffect";
// import TestUseReducer from "./useReducer";
// import Todo from "./todo";
// import Todo2 from "./todo2";
import RouterTest from "./react-router";
import reportWebVitals from './reportWebVitals';

import {BrowserRouter} from 'react-router-dom'


/*export const Global = React.createContext(111);

const cc = {
    aa:1,
    bb:2
}*/
moment.locale('zh-cn');

ReactDOM.render(
    <ConfigProvider locale={zhCN}>
        <React.StrictMode>
            {/*<App />*/}
            {/*<Index />*/}
            {/*<Tars />*/}
            {/*<Component1 />*/}
            {/* <Global.Provider value={cc}>
          <Context />
      </Global.Provider>*/}
            {/*<RefUse />*/}
            {/*<UseState />*/}
            {/*<Parent/>*/}
            {/*<UseMemoUseCallback />*/}
            {/*<UseTestState />*/}
            {/*<TestUseLayoutEffect />*/}
            {/*<TestUseReducer />*/}
            {/*<Todo/>*/}
            {/*<Todo2/>*/}
            <BrowserRouter>
                <RouterTest />
            </BrowserRouter>
        </React.StrictMode>
    </ConfigProvider>,
    document.getElementById('root')
);

reportWebVitals();